package com.zhi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 教师
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {

    //教师工号
    @Id
    private String teacherId;

    //教师姓名
    @Column(nullable = false,unique = false)
    private String name;

    //教师证件号
    @Column(nullable = false,unique = false)
    private String idCardNo;

    //教授课程
    @Column(nullable = false)
    private String className;

    //教师邮箱
    @Column(nullable = false)
    private String email;

}
